package com.tiancheng.trade.payment.mapper;

import com.tiancheng.trade.payment.model.IntRefundFlowDetail;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 *
 */
@Repository
public interface IntRefundFlowDetailMapper extends TYBaseMapper<IntRefundFlowDetail> {
    /**
     * 批量插入
     *
     * @param details {@link List<IntRefundFlowDetail>}
     * @return {@link Integer}
     */
    Integer saveBatch(@Param("list") List<IntRefundFlowDetail> details);

    /**
     * 退款流水明细批量更新-所更新字段值相同
     *
     * @param ids       id
     * @param colValMap 字段-值：(column, value)
     * @return
     */
    Integer updateSettleBatch(@Param("ids") Collection<Long> ids, @Param("colValMap") Map<String, Object> colValMap);
}
